getPendingIntent

@Nullable
open fun getPendingIntent(requestCode: Int, flags: Int): @Nullable PendingIntent(source)

Obtain a PendingIntent for launching the task constructed by this builder so far.

Return

The obtained PendingIntent. May return null only if FLAG_NO_CREATE has been supplied.

Parameters

requestCode

Private request code for the sender

flags

May be FLAG_ONE_SHOT, FLAG_NO_CREATE, FLAG_CANCEL_CURRENT, FLAG_UPDATE_CURRENT, or any of the flags supported by fillIn to control which unspecified parts of the intent that can be supplied when the actual send happens.


@Nullable
open fun getPendingIntent(requestCode: Int, flags: Int, isMutable: Boolean): @Nullable PendingIntent(source)
@Nullable
open fun getPendingIntent(requestCode: Int, flags: Int, @Nullable options: @Nullable Bundle, isMutable: Boolean): @Nullable PendingIntent(source)

Obtains a PendingIntent with mandatory mutability flag set on supported platform versions. The caller provides the flag as combination of all the other values except mutability flag. This method combines mutability flag when necessary. See getPendingIntent.


@Nullable
open fun getPendingIntent(requestCode: Int, flags: Int, @Nullable options: @Nullable Bundle): @Nullable PendingIntent(source)

Obtain a PendingIntent for launching the task constructed by this builder so far.

Return

The obtained PendingIntent. May return null only if FLAG_NO_CREATE has been supplied.

Parameters

requestCode

Private request code for the sender

flags

May be FLAG_ONE_SHOT, FLAG_NO_CREATE, FLAG_CANCEL_CURRENT, FLAG_UPDATE_CURRENT, or any of the flags supported by fillIn to control which unspecified parts of the intent that can be supplied when the actual send happens.

options

Additional options for how the Activity should be started. See startActivity